package com.ruoyi.project.system.domain;

import java.math.BigDecimal;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 定制价格对象 siyu_user_price
 *
 * @author ruoyi
 * @date 2024-10-28
 */
public class SiyuUserPrice extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 定价ID
     */
    private Integer id;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userId;

    /**
     * 产品ID
     */
    @Excel(name = "产品ID")
    private Integer productId;

    /**
     * 定制价
     */
    @Excel(name = "定制价")
    private BigDecimal price;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public SiyuUserPrice() {
    }

    public SiyuUserPrice(SiyuUserPrice siyuUserPrice) {
        this.userId = siyuUserPrice.getUserId();
        this.productId = siyuUserPrice.getProductId();
        this.price = siyuUserPrice.getPrice();
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("productId", getProductId())
                .append("price", getPrice())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
